package pATT.DataSetsGenerator.dataSetsGenerator.transaction.implement;

import java.text.SimpleDateFormat;
import java.util.Date;

import pATT.transaction.implement.AbstractTransaction;

public class Transaction extends AbstractTransaction{
	
	private String ruleName = "";  //name of GenerationRule
	private String relationName = ""; // name of Relation
	
	
	public Transaction(String output, String name, String name2) {
		 date = new SimpleDateFormat("HH:mm:ss").format(new Date())+", "+(new SimpleDateFormat("d MMMM yyyy")).format(new Date());;
		this.output = output;
		relationName = name;
		ruleName = name2;
	}
	
	public String getRelationName() {
		return relationName;
	}
	public String getRuleName() {
		return ruleName;
	}
	
	public String toString(){
		return getRelationName()+" - "+getRuleName()+" - "+getDate();
	}
}
